package com.cq.hd.order.api.vo;

import com.cq.hd.common.serialize.Decimal2Serializer;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

@Data
public class AppOrderCommissionVo implements Serializable {

    @ApiModelProperty(value = "id")
    private Long id;

    private Long agentId = 0L;

    private Long agent2Id = 0L;

    private Long userId = 0L;

    @ApiModelProperty(value = "订单状态(1-待支付,2-待核销,3-核销中,4-已取消,5-已完成,6-已关闭)")
    private Integer orderState;

    @ApiModelProperty(value = "订单号")
    private String orderNo;

    @ApiModelProperty(value = "优惠金额")
    @JsonSerialize(using = Decimal2Serializer.class)
    private BigDecimal actualCommissionAmt;

    @ApiModelProperty(value = "全单核销二级经纪人可得佣金")
    @JsonSerialize(using = Decimal2Serializer.class)
    private BigDecimal subAgentCommissionAmt;
}
